package com.wqr.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DeliciousExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public DeliciousExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDeliciousIdIsNull() {
            addCriterion("delicious_id is null");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdIsNotNull() {
            addCriterion("delicious_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdEqualTo(Integer value) {
            addCriterion("delicious_id =", value, "deliciousId");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdNotEqualTo(Integer value) {
            addCriterion("delicious_id <>", value, "deliciousId");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdGreaterThan(Integer value) {
            addCriterion("delicious_id >", value, "deliciousId");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("delicious_id >=", value, "deliciousId");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdLessThan(Integer value) {
            addCriterion("delicious_id <", value, "deliciousId");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdLessThanOrEqualTo(Integer value) {
            addCriterion("delicious_id <=", value, "deliciousId");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdIn(List<Integer> values) {
            addCriterion("delicious_id in", values, "deliciousId");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdNotIn(List<Integer> values) {
            addCriterion("delicious_id not in", values, "deliciousId");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdBetween(Integer value1, Integer value2) {
            addCriterion("delicious_id between", value1, value2, "deliciousId");
            return (Criteria) this;
        }

        public Criteria andDeliciousIdNotBetween(Integer value1, Integer value2) {
            addCriterion("delicious_id not between", value1, value2, "deliciousId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andChannelIdIsNull() {
            addCriterion("channel_id is null");
            return (Criteria) this;
        }

        public Criteria andChannelIdIsNotNull() {
            addCriterion("channel_id is not null");
            return (Criteria) this;
        }

        public Criteria andChannelIdEqualTo(Integer value) {
            addCriterion("channel_id =", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotEqualTo(Integer value) {
            addCriterion("channel_id <>", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdGreaterThan(Integer value) {
            addCriterion("channel_id >", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("channel_id >=", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdLessThan(Integer value) {
            addCriterion("channel_id <", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdLessThanOrEqualTo(Integer value) {
            addCriterion("channel_id <=", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdIn(List<Integer> values) {
            addCriterion("channel_id in", values, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotIn(List<Integer> values) {
            addCriterion("channel_id not in", values, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdBetween(Integer value1, Integer value2) {
            addCriterion("channel_id between", value1, value2, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("channel_id not between", value1, value2, "channelId");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeIsNull() {
            addCriterion("delicious_time is null");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeIsNotNull() {
            addCriterion("delicious_time is not null");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeEqualTo(Date value) {
            addCriterion("delicious_time =", value, "deliciousTime");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeNotEqualTo(Date value) {
            addCriterion("delicious_time <>", value, "deliciousTime");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeGreaterThan(Date value) {
            addCriterion("delicious_time >", value, "deliciousTime");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("delicious_time >=", value, "deliciousTime");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeLessThan(Date value) {
            addCriterion("delicious_time <", value, "deliciousTime");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeLessThanOrEqualTo(Date value) {
            addCriterion("delicious_time <=", value, "deliciousTime");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeIn(List<Date> values) {
            addCriterion("delicious_time in", values, "deliciousTime");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeNotIn(List<Date> values) {
            addCriterion("delicious_time not in", values, "deliciousTime");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeBetween(Date value1, Date value2) {
            addCriterion("delicious_time between", value1, value2, "deliciousTime");
            return (Criteria) this;
        }

        public Criteria andDeliciousTimeNotBetween(Date value1, Date value2) {
            addCriterion("delicious_time not between", value1, value2, "deliciousTime");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameIsNull() {
            addCriterion("delicious_name is null");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameIsNotNull() {
            addCriterion("delicious_name is not null");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameEqualTo(String value) {
            addCriterion("delicious_name =", value, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameNotEqualTo(String value) {
            addCriterion("delicious_name <>", value, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameGreaterThan(String value) {
            addCriterion("delicious_name >", value, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameGreaterThanOrEqualTo(String value) {
            addCriterion("delicious_name >=", value, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameLessThan(String value) {
            addCriterion("delicious_name <", value, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameLessThanOrEqualTo(String value) {
            addCriterion("delicious_name <=", value, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameLike(String value) {
            addCriterion("delicious_name like", value, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameNotLike(String value) {
            addCriterion("delicious_name not like", value, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameIn(List<String> values) {
            addCriterion("delicious_name in", values, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameNotIn(List<String> values) {
            addCriterion("delicious_name not in", values, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameBetween(String value1, String value2) {
            addCriterion("delicious_name between", value1, value2, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousNameNotBetween(String value1, String value2) {
            addCriterion("delicious_name not between", value1, value2, "deliciousName");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureIsNull() {
            addCriterion("delicious_picture is null");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureIsNotNull() {
            addCriterion("delicious_picture is not null");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureEqualTo(String value) {
            addCriterion("delicious_picture =", value, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureNotEqualTo(String value) {
            addCriterion("delicious_picture <>", value, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureGreaterThan(String value) {
            addCriterion("delicious_picture >", value, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureGreaterThanOrEqualTo(String value) {
            addCriterion("delicious_picture >=", value, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureLessThan(String value) {
            addCriterion("delicious_picture <", value, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureLessThanOrEqualTo(String value) {
            addCriterion("delicious_picture <=", value, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureLike(String value) {
            addCriterion("delicious_picture like", value, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureNotLike(String value) {
            addCriterion("delicious_picture not like", value, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureIn(List<String> values) {
            addCriterion("delicious_picture in", values, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureNotIn(List<String> values) {
            addCriterion("delicious_picture not in", values, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureBetween(String value1, String value2) {
            addCriterion("delicious_picture between", value1, value2, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPictureNotBetween(String value1, String value2) {
            addCriterion("delicious_picture not between", value1, value2, "deliciousPicture");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeIsNull() {
            addCriterion("delicious_practice is null");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeIsNotNull() {
            addCriterion("delicious_practice is not null");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeEqualTo(String value) {
            addCriterion("delicious_practice =", value, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeNotEqualTo(String value) {
            addCriterion("delicious_practice <>", value, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeGreaterThan(String value) {
            addCriterion("delicious_practice >", value, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeGreaterThanOrEqualTo(String value) {
            addCriterion("delicious_practice >=", value, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeLessThan(String value) {
            addCriterion("delicious_practice <", value, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeLessThanOrEqualTo(String value) {
            addCriterion("delicious_practice <=", value, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeLike(String value) {
            addCriterion("delicious_practice like", value, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeNotLike(String value) {
            addCriterion("delicious_practice not like", value, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeIn(List<String> values) {
            addCriterion("delicious_practice in", values, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeNotIn(List<String> values) {
            addCriterion("delicious_practice not in", values, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeBetween(String value1, String value2) {
            addCriterion("delicious_practice between", value1, value2, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousPracticeNotBetween(String value1, String value2) {
            addCriterion("delicious_practice not between", value1, value2, "deliciousPractice");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreIsNull() {
            addCriterion("delicious_score is null");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreIsNotNull() {
            addCriterion("delicious_score is not null");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreEqualTo(Double value) {
            addCriterion("delicious_score =", value, "deliciousScore");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreNotEqualTo(Double value) {
            addCriterion("delicious_score <>", value, "deliciousScore");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreGreaterThan(Double value) {
            addCriterion("delicious_score >", value, "deliciousScore");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreGreaterThanOrEqualTo(Double value) {
            addCriterion("delicious_score >=", value, "deliciousScore");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreLessThan(Double value) {
            addCriterion("delicious_score <", value, "deliciousScore");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreLessThanOrEqualTo(Double value) {
            addCriterion("delicious_score <=", value, "deliciousScore");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreIn(List<Double> values) {
            addCriterion("delicious_score in", values, "deliciousScore");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreNotIn(List<Double> values) {
            addCriterion("delicious_score not in", values, "deliciousScore");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreBetween(Double value1, Double value2) {
            addCriterion("delicious_score between", value1, value2, "deliciousScore");
            return (Criteria) this;
        }

        public Criteria andDeliciousScoreNotBetween(Double value1, Double value2) {
            addCriterion("delicious_score not between", value1, value2, "deliciousScore");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}